# Contributor: Rosie K Languet <rkl@rosiesworkshop.net>
# Contributor: Hygna <hygna@proton.me>
# Maintainer: Rosie K Languet <rkl@rosiesworkshop.net>
pkgname=doasedit
pkgver=1.0.6
pkgrel=1
pkgdesc="Shellscript to edit files that are not in a user-writable location"
url="https://codeberg.org/TotallyLeGIT/doasedit"
arch="noarch"
license="MIT"
options="!check"
depends="cmd:doas"
source="$pkgname-$pkgver.tar.gz::https://codeberg.org/TotallyLeGIT/doasedit/archive/$pkgver.tar.gz
	posix-1.patch
	posix-2.patch
	"
builddir="$srcdir/$pkgname"

package() {
	install -D -m755 "doasedit" "$pkgdir/usr/bin/doasedit"
}

sha512sums="
9c57179fbb799aace19213a3b9fc908c7ae74539838b306e5bf119ef494f0bfb6c458c2394bb5d24e538b2c798c1be853ee3561aca9fd3cc2c22231cb17adb77  doasedit-1.0.6.tar.gz
daf52835f71fbfe302ee2ae338f5a263da8b24e4c058e132a6ff45d19ef030eefe955668c4a2071e33f410eb8000e08a22396dad687c2f1d25a67f5845e2c55e  posix-1.patch
3086a9c9598ffcc3bb364a9b014fa047b0a0de2125cfedda1ab90e9b9fd63a7bb50a074fe83296cc75c0730c0c11d1a49fd0697fda176fc49448b1cbcaf3be42  posix-2.patch
"
